#include <stdio.h>
double min(double x, double y);

int main(void)
{
    double x, y;

    printf("Enter two number (q to quit): ");
    while (scanf("%lf %lf", &x, &y) == 2)
    {
        printf("The smaller number of %.2lf and %.2lf is %.2lf\n", x, y, min(x, y));
        printf("The next two values (q to quit): ");
    }
    printf("Bye!\n");

    return 0;
}

double min(double x, double y)
{
    return x < y ? x : y;
}